﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="rptPenjualanTopBrandPacksizePerChannelList.aspx.cs" Inherits="KPIReport.Web.Reports.rptPenjualanTopBrandPacksizePerChannelList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="body" runat="Server">
    <script type="text/javascript">
        $(document).ready(function () {
            $("#btnBrowseSalesman").button({ icons: { primary: "ui-icon-folder-open"} });
            $("#btnBrowseBrand").button({ icons: { primary: "ui-icon-folder-open"} });
            $("#btnBrowseProduct").button({ icons: { primary: "ui-icon-folder-open"} });
            $("#btnBrowseChannel").button({ icons: { primary: "ui-icon-folder-open"} });
            $("#btnBrowseCustomer").button({ icons: { primary: "ui-icon-folder-open"} });
        });
    
    </script>
    <script type="text/javascript">

        function OpenForm(ctl) {

            var formUrl = "";
            if (ctl == "salesman") {
                formUrl = '<%= ResolveUrl("~/forms/administration/catalog/SalesmanForm.aspx") %>';

                $('#dialog').load(formUrl + '?menuId=' + '<%= base.MenuID %>' + '&Status=' + status).dialog({ autoOpen: false, modal: true, width: 600, height: 430, title: 'Browse Salesman' });
                $("#dialog").dialog('open');
            }
            else if (ctl == "product") {
                formUrl = '<%= ResolveUrl("~/forms/administration/catalog/ProductForm.aspx") %>';

                $('#dialog').load(formUrl + '?menuId=' + '<%= base.MenuID %>' + '&Status=' + status).dialog({ autoOpen: false, modal: true, width: 600, height: 430, title: 'Browse Product' });
                $("#dialog").dialog('open');
            }

            else if (ctl == "channel") {
                formUrl = '<%= ResolveUrl("~/forms/administration/catalog/ChannelForm.aspx") %>';

                $('#dialog').load(formUrl + '?menuId=' + '<%= base.MenuID %>' + '&Status=' + status).dialog({ autoOpen: false, modal: true, width: 600, height: 430, title: 'Browse Channel' });
                $("#dialog").dialog('open');
            }

            else if (ctl == "customer") {
                formUrl = '<%= ResolveUrl("~/forms/administration/catalog/CustomerForm.aspx") %>';

                $('#dialog').load(formUrl + '?menuId=' + '<%= base.MenuID %>' + '&Status=' + status).dialog({ autoOpen: false, modal: true, width: 600, height: 430, title: 'Browse Customer' });
                $("#dialog").dialog('open');
            }


        }

    </script>
    <div class="side-content fr">
        <div class="content-module">
            <div class="content-module-heading cf">
                <h3 class="fl">
                    Laporan Penjualan Top Brand Pack Size Per Channel</h3>
                <span class="fr expand-collapse-text">Click to collapse</span> <span class="fr expand-collapse-text initial-expand">
                    Click to expand</span>
            </div>
            <!-- end content-module-heading -->
            <!-- end content-module-main -->
        </div>
        <table border="0">
            
                        <tr>
                            <td>
                                Salesman
                            </td>
                            <td style="padding-left: 20px">
                                :
                            </td>
                            <td style="padding-left: 10px">
                                <asp:TextBox ID="txtSalesman" runat="server" ReadOnly="true" Width="300"></asp:TextBox>
                            </td>
                            <td>
                                <table border="0">
                                    <tr>
                                        <td>
                                            <button id="btnBrowseSalesman" onclick="OpenForm('salesman');" type="button">
                                                Browse</button>
                                        </td>
                                        <td style="padding-left:30px;">
                                            Date Period
                                        </td>
                                        <td style="padding-left: 35px">
                                            :
                                        </td>
                                        <td colspan="2" style="padding-left: 10px">
                                            <asp:TextBox ID="txtDateStart" runat="server" Width="100"></asp:TextBox>&nbsp;
                                            <asp:TextBox ID="txtDateEnd" runat="server" Width="100"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Filter Product
                            </td>
                            <td style="padding-left: 20px">
                                :
                            </td>
                            <td colspan="2" style="padding-left: 10px">
                                <table border="0">
                                    <tr>
                                        <td>
                                            <asp:RadioButton ID="rbProduct" Text="Product" GroupName="product" runat="server"
                                                Checked="true" />&nbsp;<asp:RadioButton ID="rbBrand" Text="Brand Pack Size" GroupName="product"
                                                    runat="server" />
                                        </td>
                                        <td style="padding-left:265px;">
                                            Top Ke
                                        </td>
                                        <td style="padding-left: 58px">
                                            :
                                        </td>
                                        <td colspan="2" style="padding-left: 10px">
                                            <asp:DropDownList ID="ddlTop" runat="server" Width="100">
                                                <asp:ListItem Text="10" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="20" Value="2"></asp:ListItem>
                                                <asp:ListItem Text="30" Value="3"></asp:ListItem>
                                                <asp:ListItem Text="40" Value="4"></asp:ListItem>
                                                <asp:ListItem Text="50" Value="5"></asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Product
                            </td>
                            <td style="padding-left: 20px">
                                :
                            </td>
                            <td style="padding-left: 10px">
                                <asp:TextBox ID="txtProduct" runat="server" ReadOnly="true" Width="300"></asp:TextBox>
                            </td>
                            <td>
                                <table border="0">
                                    <tr>
                                        <td>
                                            <button id="btnBrowseProduct" onclick="OpenForm('product');" type="button">
                                                Browse</button>
                                        </td>
                                        <td style="padding-left:30px;">
                                            Type Transaksi
                                        </td>
                                        <td style="padding-left: 20px">
                                            :
                                        </td>
                                        <td colspan="2" style="padding-left: 10px">
                                            <asp:DropDownList ID="ddlType" runat="server" Width="100">
                                                <asp:ListItem Text="Gross Amount" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="Net Sales" Value="2"></asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Brand Pack Size
                            </td>
                            <td style="padding-left: 20px">
                                :
                            </td>
                            <td style="padding-left: 10px">
                                <asp:TextBox ID="txtBrand" runat="server" ReadOnly="true" Width="300"></asp:TextBox>
                            </td>
                            <td>
                                <button id="btnBrowseBrand" type="button">
                                    Browse</button>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Channel
                            </td>
                            <td style="padding-left: 20px">
                                :
                            </td>
                            <td style="padding-left: 10px">
                                <asp:TextBox ID="txtChannel" runat="server" ReadOnly="true" Width="300"></asp:TextBox>
                            </td>
                            <td>
                                <button id="btnBrowseChannel" onclick="OpenForm('channel');" type="button">
                                    Browse</button>
                            </td>
                        </tr>
                        
                 
        </table>
    </div>
    <div>
        <table id="table" class="scroll" cellpadding="0" cellspacing="0">
        </table>
        <div id="pager" class="scroll">
        </div>
        <br />
        <div id="dialog" title="Default dialog">
        </div>
    </div>
    <%--<div>
        <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="false" EnableParameterPrompt="False"
            HasCrystalLogo="False" HasToggleGroupTreeButton="False" HasToggleParameterPanelButton="False"
            PrintMode="ActiveX" />

            <asp:Button ID="btnViewReport" Text="View Report" runat="server" />
    </div>--%>
</asp:Content>
